package learn.design.patterns.G_Adapter.ClassAdapter;

import learn.design.patterns.G_Adapter.NewDeviceInterface;
import learn.design.patterns.G_Adapter.OldDevice;

// 类适配器
public class ClassAdapter extends OldDevice implements NewDeviceInterface {
    @Override
    public void newMethod() {
        oldMethod();
        System.out.println("Converted to newMethod.");
    }
}
